<template>
  <div>
    <el-card shadow="always" class="video_card">
      <div class="video_card_top">
        <!-- <img :src="itemInfo.cover[1]" class="video_card_top_image" /> -->
        <el-image
          fit="fill"
          class="video_card_top_image"
          :src="itemInfo.cover[0]"
        ></el-image>
        <span class="vido_span_top">原创</span>
        <div class="vido_image_top"></div>
      </div>
      <div class="video_card_center">
        <div class="video_card_center_top">
          <span class="vido_span_01">
            <i>作品</i>
          </span>
          <span class="vido_span_02">{{itemInfo.momentClassificationBackup.workTitle}}</span>
        </div>
        <span class="vido_center_span_03">543人浏览</span>
        <div class="video_card_center_bottom">
          <div class="video_icon">
            <ele-Pointer></ele-Pointer><span>{{123}}</span>
          </div>
          <div class="video_icon">
            <ele-ChatDotSquare></ele-ChatDotSquare><span>111</span>
          </div>
          <div class="video_icon"><ele-Star></ele-Star><span>111</span></div>
        </div>
        <div class="video_card_bottom">
          <el-image
            fit="fill"
            :lazy="true"
            class="bottom_image"
            :src="itemInfo.creatorBackup.avatar"
          ></el-image>
          <span class="span_left">{{itemInfo.creatorBackup.name}}</span>
          <span class="span_rigth">{{
            getFullTime("MM-DD",itemInfo.onsellUpdateTime)
          }}</span>
        </div>
      </div>
    </el-card>
  </div>
</template>
<script lang="ts">
import { defineComponent} from "vue";
export default defineComponent({});
</script>
<script lang="ts" setup>
import getFullTime from "@/utils/getFullTime"
const { itemInfo } = defineProps(["itemInfo"]);
</script>
<style scoped lang="scss">
.el-card.is-always-shadow {
  --el-card-padding: 0px;
  width: 265px;
  height: 351px;
  .video_card_top {
    position: relative;
    height: 157px;
    .video_card_top_image {
      width: 265px;
      height: 157px;
    }
    .vido_span_top {
      position: absolute;
      top: 6px;
      left: 6px;
      width: 50px;
      height: 27px;
      background: #f35997;
      border-radius: 8px;
      line-height: 27px;
      text-align: center;
      font-size: 18px;
      color: #eee;
      z-index: 66;
    }
    .vido_image_top {
      position: absolute;
      bottom: 12px;
      left: 16px;
      width: 29px;
      height: 29px;
      z-index: 66;
      background: url("@/assets/images/vid_play.png") no-repeat;
    }
  }
  .video_card_center {
    height: 129px;
    box-sizing: border-box;
    padding: 12px;
    border-bottom: 1px solid #999;
    .video_card_center_top {
      height: 50px;
      .vido_span_01 {
        box-sizing: border-box;
        padding: 2px;
        border: 1px solid #999;
        border-radius: 5px;
      }
      .vido_span_02 {
        margin-left: 5px;
        font-size: 16px;
        color: #666;
      }
    }
    .vido_center_span_03 {
      height: 20px;
      line-height: 20px;
      text-align: center;
      font-size: 12px;
      color: rgb(161, 161, 161);
    }
    .video_card_center_bottom {
      display: flex;
      text-align: center;
      padding-top: 8px;
      .video_icon {
        margin-right: 20px;
        margin-bottom: 32px;
        svg {
          height: 20px;
          width: 20px;
          color: #999;
          margin-right: 5px;
        }
        span {
          color: #999;
        }
      }
    }
  }
  .video_card_bottom {
    display: flex;
    position: relative;
    height: 32px;
    line-height: 32px;
    text-align: center;
    .bottom_image {
      display: block;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background-color: #999;
    }
    .span_left {
      margin-left: 8px;
      font-size: 14px;
    }
    .span_rigth {
      position: absolute;
      right: 0;
      font-size: 14px;
    }
  }
}
</style>
